package com.shawn.integeration.rocketmq;

import lombok.Data;

import java.util.Date;

/**
 * MQ 消息基类
 *
 * @author: shawn
 * @Date: 2024/1/31 16:38
 * @Version 1.0.0
 */
@Data
public class BaseMqMsg<T> {
    private String id;
    private Date timestamp;
    private T data;

    public BaseMqMsg(String id, Date timestamp, T data) {
        this.id = id;
        this.timestamp = timestamp;
        this.data = data;
    }
}
